<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib prefix="s"  uri="/struts-tags"%>

<title>${title }</title>
<s:if test='option=="check"'><span id="navlink">合同管理 >>${title }</span></s:if>
<s:else><span id="navlink">合同管理 >>合同查询>>${title }</span></s:else>

<div id="top_area">
	<input type="button" id="search" value="查找"/>
</div>

<table class="table_box table_bottom_border" cellspacing="0" cellpadding="0">
	<tr>
		<th style="width: 200px;">合同编号</th>
		<th>客户名称</th> 
		<th>客户类型</th>
		<th style="width: 120px;">借款金额</th> 
		<th style="width: 100px;">到期时间</th>
		<th style="width: 150px;">操作</th> 
	</tr>
<s:iterator value="contractList" status="index" var="var">
	<tr>
		<td style="text-align:center">${contractId}</td>
		<td style="text-align:center">${customname}</td>
		<s:if test="clienttype=='1'">
		<td style="text-align:center">个人</td>
		</s:if>
		<s:elseif test="clienttype=='2'">
		<td style="text-align:center">企业</td>
		</s:elseif><s:else>
		<td style="text-align:center">错误</td>
		</s:else>
		<td style="text-align:center"><s:text name="f.money"><s:param value="applymoney"/></s:text></td>
		<td style="text-align:center"><s:text name="f.date.ymd"><s:param value="enddate"/></s:text></td>
		<td style="text-align:center">
<s:if test='option=="all"'>
<a href="showContract!detail?id=${Id}">详情</a>
<a href="contractPrint?id=${Id}">打印</a>
</s:if><s:elseif test='option=="check"'>
<a href="showContract!check?id=${Id}">审核</a>
</s:elseif>
<s:elseif test='option=="allfalse"'>
<a href="showContract!detail?id=${Id}">详情</a>
</s:elseif>
		</td>
	</tr>
</s:iterator>
</table>
<div id="button_area">
<div class="pagebar"></div>
</div> 
<script>
$("#search").click(function(){
	$( "#dialog-search" ).dialog({
		resizable: false,
	    modal: true
	});
});
</script>

<div id="dialog-search" style="display:none" title="查询">
	<form action="aaaa_action" method="get">
	合同编号：<input type="text" value="" /><br /><br />
	签定日期：<input type="text" value="" />
	<div style="float:right">
	<input type="submit" value="查询" />
	</div>
	</form>
</div>